package cn.jwelll.bxcstock.common

import android.app.Application
import android.content.Context
import android.support.multidex.MultiDex
import com.tencent.bugly.Bugly

class StockApp : Application() {
    companion object {
        open var mAppContext: Application? = null
        fun getInstance(): Application? {
            return mAppContext
        }
    }
    override fun onCreate() {
        super.onCreate()
        mAppContext = this
        Bugly.init(getApplicationContext(), "f2a4d06f96", true);
    }


    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        MultiDex.install(this);
    }
}